package demo;

import java.util.Random;
import java.util.TreeSet;

//Day07
public class Day17002 {
    public static void main(String[] args) {
        Random random=new Random();
        TreeSet<Integer> set=new TreeSet<>();
        Integer j;
        for(j=0;set.size()<8;j++){
            Integer num=random.nextInt(11)+10;
            set.add(num);
        }
        System.out.println(j);
        System.out.println(set);
    }
}
